//
//  KChartViewController.h
//  Stock
//
//  Created by sun black on 11-7-27.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CorePlot-CocoaTouch.h"
#import "StockChartDataService.h"

@interface KChartViewController : UIViewController<CPTPlotDataSource,ServiceDelegate>{
    StockChartDataService *service;
    NSMutableArray *dataArray;
    NSString *chartType;
    NSString *stockId;
    CPTGraphHostingView *hostView;
    CPTGraph *graph;
    NSMutableArray *xLabelTitles;
    UIView *loadingView;
    BOOL loaded;
    NSMutableArray *barChartData;
    
}

@property (nonatomic, retain) StockChartDataService *service;
@property (nonatomic, retain) NSMutableArray *dataArray;
@property (nonatomic, retain) NSString *chartType;
@property (nonatomic, retain) NSString *stockId;
@property (nonatomic, retain) CPTGraph *graph;
@property (nonatomic, retain) CPTGraphHostingView *hostView;
@property (nonatomic, retain) NSMutableArray *xLabelTitles;
@property (nonatomic, retain) IBOutlet UIView *loadingView;
@property (nonatomic, retain) NSMutableArray *barChartData;

-(void)chartViewDidDisplay;
-(void)buildChartGraph; 
@end
